package com.unchartedskies.model
{
	import com.gamesmile.framework.util.Log;
	import com.unchartedskies.controller.event.StateEvent;
	import com.unchartedskies.model.value.StateConstant;
	
	import org.robotlegs.mvcs.Actor;
	
	public class State extends Actor 
	{
		private var _currentState:String;
	
		
		public function get currentState():String
		{
			return _currentState;
		}

		public function set currentState(value:String):void
		{
			Log.debug(this,"Changing state : "+value);
			_currentState = value;
			dispatch(new StateEvent(StateEvent.CHANGE_STATE,value));
		}

	}
}